package com.ak.gateway;

import com.ak.common.entity.constant.AKServerConstant;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.time.LocalDateTime;

@Slf4j
@SpringBootApplication
public class AKGatewayApplication {

    @Value("${spring.application.name:'" + AKServerConstant.AK_GATEWAY + "'}")
    private static String applicationName;

    public static void main(String[] args) {
        SpringApplication.run(AKGatewayApplication.class, args);

        log.info("  _   _   _   _   _   _   _");
        log.info(" / \\ / \\ / \\ / \\ / \\ / \\ / \\");
        log.info("| s | t | a | r | t | e | d |");
        log.info(" \\_/ \\_/ \\_/ \\_/ \\_/ \\_/ \\_/");
        log.info("{} 启动完毕，时间：{}", applicationName, LocalDateTime.now());
    }


}
